.axiom-playground-layout {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  overflow: hidden;
  background-color: var(--axiom-bg-color);

  .playground-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; // Ensures the main area can shrink

    &__header {
      flex-shrink: 0;
      padding: var(--axiom-spacing-md);
      border-bottom: 1px solid var(--axiom-border-color);
    }

    &__content {
      flex-grow: 1;
      min-height: 0; // Ensures the content area can shrink
      display: flex;
      flex-direction: column;
    }

    &__footer {
      flex-shrink: 0;
      padding: var(--axiom-spacing-md);
      border-top: 1px solid var(--axiom-border-color);
    }
  }

  .playground-resizer {
    flex-shrink: 0;
    width: 5px;
    cursor: col-resize;
    background-color: var(--axiom-border-color-light);
    transition: background-color 0.3s;

    &:hover {
      background-color: var(--axiom-primary-color);
    }
  }

  .playground-sidebar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--axiom-border-color);
    background-color: var(--axiom-bg-color-soft);

    &__header {
      flex-shrink: 0;
      padding: var(--axiom-spacing-md);
      border-bottom: 1px solid var(--axiom-border-color);
    }

    &__content {
      flex-grow: 1;
      overflow-y: auto;
      padding: var(--axiom-spacing-md);
    }

    &__footer {
      flex-shrink: 0;
      padding: var(--axiom-spacing-md);
      border-top: 1px solid var(--axiom-border-color);
    }
  }
} 